
class Helper_saveToDisk(object):
  
    
    def __init__(self,aDisk):
        self.disk = aDisk
        
    def persist(self,aPartsList, aListOfFreeBlocks):
        for i in range(len(aListOfFreeBlocks)):
            self.disk.writeDataBlock(aListOfFreeBlocks[i],aPartsList[i])
            
        